package cn.ito.zjgsu.domain.wrapper;

import java.util.Date;

import com.alibaba.fastjson.JSON;

import cn.ito.zjgsu.domain.FinancialType;

public class FinancialTypeWrapper {
	private FinancialType financialType;

	public FinancialType getFinancialType() {
		return financialType;
	}

	public void setFinancialType(FinancialType financialType) {
		this.financialType = financialType;
	}
	
	public static FinancialTypeWrapper getTestEntry(){
		FinancialType financialType = new FinancialType();
		financialType.setFinancialTypeCreatetime(new Date());
		financialType.setFinancialTypeId(1);
		financialType.setFinancialTypeName("test");
		financialType.setFtDeleteTags(true);
		FinancialTypeWrapper financialTypeWrapper =
				new FinancialTypeWrapper();
		financialTypeWrapper.setFinancialType(financialType);
		return financialTypeWrapper;
	}
	
	public static void testSelf(){
		System.out.println(getTestEntry().toJsonString());
	}
	
	public String toJsonString(){
		return JSON.toJSONString(this);
	}
	
	public static String toJsonArrayString(FinancialTypeWrapper financialTypeWrapper){
		return JSON.toJSONString(financialTypeWrapper);
	}
}
